import request from '@/utils/request'

// 查询商家审核列表
export function listMarketersApply(query) {
  return request({
    url: '/marketers/MarketersApply/list',
    method: 'get',
    params: query
  })
}

// 查询商家审核详细
export function getMarketersApply(shopsId) {
  return request({
    url: '/marketers/MarketersApply/shopsId/' + shopsId,
    method: 'get'
  })
}

// 新增商家审核
export function addMarketersApply(data) {
  return request({
    url: '/marketers/MarketersApply/addShop',
    method: 'post',
    data: data
  })
}

// 修改商家审核
export function updateMarketersApply(data) {
  return request({
    url: '/marketers/MarketersApply',
    method: 'put',
    data: data
  })
}

// 删除商家审核
export function delMarketersApply(shopsId) {
  return request({
    url: '/marketers/MarketersApply/' + shopsId,
    method: 'delete'
  })
}
